export HADOOP_HOME=${hadoop_home}
export HADOOP_COMMON_HOME=${hadoop_home}
export HADOOP_MAPRED_HOME=${hadoop_home}
export HCAT_HOME=${hive_home}
export HIVE_HOME=${hive_home}
for f in $HIVE_HOME/lib/*.jar; do
  if [ "$HADOOP_CLASSPATH" ]; then
    export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$f
  else
    export HADOOP_CLASSPATH=$f
  fi
done
echo "the hadoop classpath is $HADOOP_CLASSPATH"
${sqoop_home}/bin/sqoop export -Dsqoop.export.records.per.statement=40 --table "${db_table}" --connect "${db_conn}" --username "${db_username}" --password "${db_password}" --hcatalog-table "${hive_table}" --hcatalog-database "${hive_db}" --columns "${hive_columns}"